}
_callExtensionEnable(uuid) {
+ if (!Main.sessionMode.allowExtensions)
+ return;
+
let extension = this.lookup(uuid);
if (!extension)
return;
}
_callExtensionInit(uuid) {
+ if (!Main.sessionMode.allowExtensions)
+ return;
+
let extension = this.lookup(uuid);
if (!extension)
throw new Error("Extension was not properly created. Call createExtensionObject first");
_onEnabledExtensionsChanged() {
let newEnabledExtensions = this._getEnabledExtensions();
- if (!this._enabled)
- return;
-
// Find and enable all the newly enabled extensions: UUIDs found in the
// new setting, but not in the old one.
newEnabledExtensions.filter(
this.reloadExtension(extension);
this._enabledExtensions = this._getEnabledExtensions();
- if (Main.sessionMode.allowExtensions) {
- this._enabledExtensions.forEach(uuid => {
- this._callExtensionEnable(uuid);
- });
- }
+ this._enabledExtensions.forEach(uuid => {
+ this._callExtensionEnable(uuid);
+ });
}
_loadExtensions() {